package com.bootcamp.ex1124.bean;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.Past;
import java.util.Date;

/**
 * @program: MyMavenProject
 * @description:
 * @author: Keyu Li
 * @create: 2021-11-23 19:11
 **/

@Data
public class User {
    Integer uid;

    @Length(max = 16)
    String username;

    @Length(min = 8)
    String password;

    String phone;

    String gender;

    @Min(18)
    Integer age;

    @Past
    Date birthday;
}
